package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：PimsHospitalPathologyInfo
 * @Description： TODO
 * @Author：cyy
 * @Date：Created in 2018/11/15.
 * @Company:
 * @Version：
 * @Modified By:
 */

@Entity
@Table(name = "PIMS_HOSPITAL_PATHOLOGY_INFO", catalog = "")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsHospitalPathologyInfo extends BaseDataEntity<Long> {
    /**
     *id
     */
    private Long id;
    /**
     *病种id
     */
    private Long pathologyId;
    /**
     *别名
     */
    private String thealias;
    /**
     *病理号前缀
     */
    private String numberPrefix;
    /**
     *病理编号生成规则
     */
    private String regula;
    /**
     *当前编号
     */
    private String nowNumber;
    /**
     *门诊病理号
     */
    private String numberPrefixMz;
    /**
     *门诊病理号生成规则
     */
    private String regulaMz;
    /**
     *门诊当前编号
     */
    private String nowNumberMz;
    /**
     *是否开启多规则匹配
     */
    private Long isMoreRule;
    /**
     * 是否显示
     */
    private Integer isShow;
    /**
     * 所属父类
     */
    private Long faId;
    /**
     * 对应诊断模板id
     */
    private Long diaId;
    /**
     * 排序号
     */
    private Long sort;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_CUSTOMER_PATHOLOGY")
    @SequenceGenerator(name = "SEQ_CUSTOMER_PATHOLOGY", sequenceName = "SEQ_CUSTOMER_PATHOLOGY", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "PATHOLOGYID")
    public Long getPathologyId() {
        return pathologyId;
    }

    public void setPathologyId(Long pathologyId) {
        this.pathologyId = pathologyId;
    }

    @Basic
    @Column(name = "THEALIAS")
    public String getThealias() {
        return thealias;
    }

    public void setThealias(String thealias) {
        this.thealias = thealias;
    }

    @Basic
    @Column(name = "NUMBERPREFIX")
    public String getNumberPrefix() {
        return numberPrefix;
    }

    public void setNumberPrefix(String numberPrefix) {
        this.numberPrefix = numberPrefix;
    }

    @Basic
    @Column(name = "REGULA")
    public String getRegula() {
        return regula;
    }

    public void setRegula(String regula) {
        this.regula = regula;
    }

    @Basic
    @Column(name = "NOWNUMBER")
    public String getNowNumber() {
        return nowNumber;
    }

    public void setNowNumber(String nowNumber) {
        this.nowNumber = nowNumber;
    }

    @Basic
    @Column(name = "NUMBERPREFIXMZ")
    public String getNumberPrefixMz() {
        return numberPrefixMz;
    }

    public void setNumberPrefixMz(String numberPrefixMz) {
        this.numberPrefixMz = numberPrefixMz;
    }

    @Basic
    @Column(name = "REGULAMZ")
    public String getRegulaMz() {
        return regulaMz;
    }

    public void setRegulaMz(String regulaMz) {
        this.regulaMz = regulaMz;
    }

    @Basic
    @Column(name = "NOWNUMBERMZ")
    public String getNowNumberMz() {
        return nowNumberMz;
    }

    public void setNowNumberMz(String nowNumberMz) {
        this.nowNumberMz = nowNumberMz;
    }

    @Basic
    @Column(name = "ISMORERULE")
    public Long getIsMoreRule() {
        return isMoreRule;
    }

    public void setIsMoreRule(Long isMoreRule) {
        this.isMoreRule = isMoreRule;
    }

    @Basic
    @Column(name = "ISSHOW")
    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    @Basic
    @Column(name = "FAID")
    public Long getFaId() {
        return faId;
    }

    public void setFaId(Long faId) {
        this.faId = faId;
    }

    @Basic
    @Column(name = "DIAID")
    public Long getDiaId() {
        return diaId;
    }

    public void setDiaId(Long diaId) {
        this.diaId = diaId;
    }

    @Basic
    @Column(name = "SORT")
    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }
}
